package com.jumi.microservice.exception;

import com.jumi.microservice.common.enumeration.IResponseEnum;

/**
 * @author Scw
 * @Date 2020-08-20 09:48
 */
public enum RefundGoodsExceptionEnum implements IResponseEnum {
    //退款、退货退款信息
    INFO_NO_EXIST(500, "请求信息不存在！"),
    ORDER_STATUS_NOT_ALLOW(500, "当前订单状态不能发起申请！"),
    GOODS_STATUS_MAX_NUM(500, "当前商品退货数量超过实发数量，请联系客服！"),
    GOODS_STATUS_NOT_ALLOW(500, "当前商品状态不能发起申请！"),
    ORDER_OVER_TIME(500, "当前商品超过售后有效期！"),
    ORDER_INFO_NO_EXIST(500, "订单信息不存在！"),
    GOODS_NO_SHIP(500, "由于商品正在出库中，暂时无法发起售后，给您带来不便，敬请谅解。"),
    GOODS_CANNOT_GIVEUP(500, "由于商品已发起补偿邮费，无法选择弃货。"),
    MONEY_LESS_ZERO(500, "退货金额必须大于0！"),
    DEL_FLAG_YES(600, "当前售后记录已删除，无法查看");

    private Integer code;
    private String message;

    RefundGoodsExceptionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}